import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/fonts/iconfont.css'

// 富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)


// 处理时间格式
import moment from 'moment'
Vue.filter('dateFormat', function(dateVal, formatVal) {
    return moment(dateVal).format(formatVal);
})

// 全局注册第三方组件
// import TreeTable from 'vue-table-with-tree-grid'
// Vue.component('tree-table', TreeTable)

// 导入组件库
import ElementUI from 'element-ui';
// 导入组件相关样式
import 'element-ui/lib/theme-chalk/index.css';
// 配置 Vue 插件
Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')